import request from '@/utils/request'

// 获取工作日设置列表
export function getWorkdayList(query) {
  return request({
    url: '/system/day/workday/list',
    method: 'get',
    params: query
  })
}
//工作日设置保存
export function getWorkdaySave(data) {
  return request({
    url: '/system/day/workday/save',
    method: 'post',
    data: data
  })
}
//自定义日期列表
export function getDefineDayList(query) {
  return request({
    url: '/system/day/self/define/day/list',
    method: 'get',
    params: query
  })
}

//自定义日期新增
export function addDefineDay(data) {
  return request({
    url: '/system/day/self/define/day/add',
    method: 'post',
    data: data
  })
}
//自定义日期删除
export function delDefineDay(query) {
  return request({
    url: '/system/day/self/define/day/delete',
    method: 'post',
    params: query
  })
}
//自定义日期修改
export function updateDefineDay(data) {
  return request({
    url: '/system/day/self/define/day/update',
    method: 'post',
    data: data
  })
}
//自定义日期批量删除
export function delDefineDayBatch(query) {
  return request({
    url: '/system/day/self/define/day/batch/delete',
    method: 'post',
    params: query
  })
}
